package com.springboot.dao;

import com.springboot.entity.SystemRoleMenuEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色资源表 Mapper 接口
 * </p>
 *
 * @author zyj
 * @since 2023-02-24
 */
@Mapper
public interface SystemRoleMenuDao extends BaseMapper<SystemRoleMenuEntity> {

    /**根据角色id删除*/
    void deleteByRoleId(Integer roleId);

    void saveRoleMenu(@Param("roleId") Integer roleId,@Param("menus") List<String> menus);
}
